import axios from '../../network/axios'

// 获取厂商
export function getManufacturer(params = { limit: 99999 }) {
  return axios({
    url: '/manufacturer/manufacturer',
    params
  })
}

// 查询
export function getManufacturerList(params = {}) {
  return axios({
    url: '/manufacturer-input-out-pay/list',
    method: 'get',
    params
  })
}

// 新增
export function addManufacturer(params = {}) {
  return axios({
    url: '/manufacturer-input-out-pay/insert',
    method: 'post',
    data: params
  })
}

// 刷新
export function refreshManufacturer(params) {
  return axios({
    url: '/manufacturer-input-out-pay/refresh',
    method: 'get',
    params
  })
}

// 修改金额
export function updateMoney(params) {
  return axios({
    url: '/manufacturer-input-out-pay/updateMoney',
    method: 'put',
    params
  })
}

// 删除
export function deleteManufacturer(params) {
  return axios({
    url: '/manufacturer-input-out-pay/delete',
    method: 'delete',
    params
  })
}
